package com.summer.dto;

import com.summer.commonException.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel("新增课程dto")
@Data
public class EditionDto extends AddCourseDto{

    @NotNull(groups = {ValidationGroups.Update.class}, message = "修改id不能为空")
    @ApiModelProperty(value = "修改id", required = true)
    private Long id;
}
